<template>
  <div v-show="dialogValue" class="add-page f-c">
    <BackPage title="工作记录详情" show-back @back="onPageBack" />
    <div class="add-form-box f-g">
      <el-form ref="formRef" :model="ruleForm" :rules="rules" label-position="top" class="user-add-form " inline disabled>
        <el-form-item label="项目名称" prop="projectName" style="width: 100%">
          <el-input v-model="ruleForm.projectName" clearable />
        </el-form-item>
        <el-form-item label="代办员" prop="doName">
          <el-input v-model="ruleForm.doName" clearable />
        </el-form-item>
        <el-form-item label="时间" prop="createTime" style="margin-left: 64px">
          <el-input v-model="ruleForm.createTime" clearable />
        </el-form-item>
        <el-form-item label="用户姓名" prop="userName">
          <el-input v-model="ruleForm.userName" clearable />
        </el-form-item>
        <el-form-item label="联系方式" prop="contactInformation" style="margin-left: 64px">
          <el-input v-model="ruleForm.contactInformation" clearable />
        </el-form-item>
        <el-form-item label="用户咨询描述" prop="content" style="width: 100%">
          <el-input v-model="ruleForm.content" type="textarea" :rows="5" clearable />
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  name: 'User1Add',
  data() {
    return {
      dialogValue: false,
      ruleForm: {

      },
      rules: {
      }
    }
  },
  created() {

  },
  methods: {
    async open(item) {
      this.ruleForm = item
      this.dialogValue = true
    },
    onPageBack() {
      this.$emit('get-page')
      this.dialogValue = false
    }
  }
}
</script>

<style scoped lang="scss">
::v-deep .el-input.is-disabled .el-input__inner{
  color: #999999;
}
.add-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  background-color: #F6F6F6;
}
.add-form-box {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(185, 185, 185, .3);
  border-radius: 16px;
  padding: 60px;
  ::v-deep .el-form {
    .el-form-item {
      width: calc((100% - 64px) / 2);
      margin-right: 0;
    }
    .el-select {
      width: 100%;
    }
  }
}
</style>
